package com.sm.chatinputlibrary;

import androidx.annotation.Nullable;

import com.scorpio.baselibrary.adapter.BasicQuickAdapter;
import com.scorpio.baselibrary.adapter.BasicViewHolder;

import java.util.List;

/**
 * created by zhud on 2019/4/8
 */
public class ChatFunctionAdapter extends BasicQuickAdapter<ChatFunctionBean, BasicViewHolder> {
    public ChatFunctionAdapter(@Nullable List data) {
        super(R.layout.input_item_chat_function, data);
    }

    @Override
    protected void convert(BasicViewHolder helper, ChatFunctionBean item) {
        helper.setImageResource(R.id.function_iv, item.image_id)
                .setText(R.id.function_tv, item.string_id)
                .addOnClickListener(R.id.function_item_layout);
    }
}
